import styled from 'styled-components'

export const HeaderRightWrapper = styled.div`
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	font-weight: 600;
	color: ${props => (props.theme.isAlpha ? '#fff' : props.theme.text.primaryColor)};

	.btns {
		display: flex;
		align-items: center;
		margin-right: 6px;

		.btn {
			height: 18px;
			line-height: 18px;
			padding: 12px 15px;
			border-radius: 50px;
			cursor: pointer;
			box-sizing: content-box;

			transition: background-color 250ms ease;
			&:hover {
				background-color: #f7f7f7;
			}
		}
	}

	.profile {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: space-evenly;
		margin-right: 24px;
		width: 77px;
		height: 42px;
		color: ${props => props.theme.text.primaryColor};
		box-sizing: border-box;
		border: 1px solid #ccc;
		border-radius: 25px;
		background-color: #fff;
		cursor: pointer;

		${props => props.theme.mixin.boxShadow}

		.pop-up-box {
			position: absolute;
			right: 0;
			top: 55px;
			width: 240px;
			border-radius: 12px;
			background-color: #fff;
			box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
			font-weight: normal;

			.top,
			.bottom {
				padding: 5px 0;

				.item {
					padding: 14px 20px;

					&:hover {
						background-color: #f5f5f5;
					}
				}
			}

			.top {
				border-bottom: 1px solid #ddd;
			}
		}
	}
`
